<div id="sf_admin_container">
    <form method="post" action="<?php echo url_for('@orderArticle') ?>">
    <div class="orderarticles">
    <?php
    //print_r($listaricles->toArray());die();
    foreach($listaricles as $journal) :
        echo '<div class="titre-news"><h4>Ordonner les articles de theconnexter magazine numero <span class="numero">'.$journal->getId().' : </span><span class="titre">'.$journal->getTitre().'</span></h4></div>';
        echo '<input type="hidden" name="idjournal" value="'.$journal->getId().'" />';
        echo '<table class="order-articles"><thead><tr><th>Titre</th><th>Page</th></tr></thead>';
        $ii=0;
        foreach($journal->Articles as $article) :
            //print_r($article->toArray());die();
            echo'<tr><td>'.$article->getTitre().'</td><td><input type="text" id="order'.$ii.'" name="order'.$ii.'" value="'.$ii.'" />
                <input type="hidden" name="order1'.$ii.'" value="'.$article->getId().'" /></td></tr>';
            $ii++;
        endforeach;
        echo '<input type="hidden" name="nbrearticles" value="'.$ii.'" /><tfoot><tr><td colspan="2" style="text-align:center;"><input type="submit" name="btn-submit" value="Valider"/></td></tr></tfoot></table>';
        /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */

    endforeach;
    ?>
    </div>
    </form>
</div>